<?php
$url='http://localhost/abook/index.php/client/insert_comments';
$str=array('pid'=>'appstore001','cl'=>1,'bco'=>'精通javascript+jquery是一本好书');
$body=json_encode($str);
echo $body;
$options=array('method'=>'POST','content'=>$body);
$context=stream_context_create(array('http'=>$options));
print file_get_contents($url,false,$context);
?>
